<template>
  <div class="stagetooltip2">
    <div class="title"><p>提示</p></div>
    <div class="stagetooltip_text">
      <p class="text1">当前模版仅有背景图，是否直接保存？</p>
      <p class="text2">
        提示：可在模板中增加默认文字和图片元素等，方便后续修改使用。
      </p>
    </div>
    <div class="amendsort_tool">
      <div class="amendsort_tools">
        <div class="amendsort_confirm" @click="amendsortaddOkClick(1)">
          确定
        </div>
        <div class="amendsort_cancel" @click="amendsortaddOkClick(0)">取消</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["stagetooltipcon"],

  data() {
    return {};
  },
  methods: {
    //返回是否要切换
    amendsortaddOkClick(val) {
      //ok - 继续 no - 不进行
      this.$emit("childClick", val, this.stagetooltipcon);
    },
  },
};
</script>

<style lang="less" scoped>
@import "../../assets/styles/frame.less";
.stagetooltip2 {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  z-index: 999;
  width: 300px;
  height: 200px;
  padding: 22px 28px 24px;
  box-shadow: @shadow;
  background: #f6f6f6;
  border-radius: @radius2;
  .divDWCS();
  align-items: center;
  color: #2b2b2b;

  .title {
    font-weight: bold;
    font-size: 14px;
  }
  .stagetooltip_text {
    .text1 {
      font-size: 14px;
      margin: 8px 0 16px 0;
    }
  }
  .amendsort_tool {
    width: 100%;
    height: 34px;
    margin-top: 12px;
    .cen();
    .amendsort_tools {
      display: flex;
      .amendsort_confirm {
        .btn();
        .cen();
        margin-right: 14px;
        background: @color2;
        color: #fff;
      }
      .amendsort_cancel {
        .btn();
        .cen();
      }
    }
  }
}
</style>